<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新增公司</title>
<link href="../style/main.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="../style/style.css" />
<script type="text/javascript" src="../Scripts/validator.js"></script>
<script>

 function changeV(objID)
{
	if(document.getElementById("tbody_"+objID).style.display == "block")
	{
		
		document.getElementById("img_"+objID).src = "../images/ico_have2.gif";
		document.getElementById("tbody_"+objID).style.display = "none"
	}
	else
	{
		document.getElementById("img_"+objID).src = "../images/ico_nohave2.gif";
		document.getElementById("tbody_"+objID).style.display = "block"
	}
}

</script>
    


</head>
<body>
<s:form action="addCompanyAction" method="post" theme="simple"  onsubmit="return Validator.Validate(this,1);">
<table width="620" border="0" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <td><div class="mainarea">
      <div class="search">
      <%if(request.getParameter("msg") != null) 
      		out.println("</font color='red'>"+request.getParameter("msg")+"</font>"); 
       %>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table4">
          <tr>
            <td width="28%" colspan="2" bgcolor="#BBD2F7" class="title">&nbsp;基本资料</td>
          </tr>
          <tr>
            <td colspan="2"><table width="100%" border="0" cellspacing="2" cellpadding="0">
              <tr>
                <td width="21%" align="right" >保险公司编号：</td>
                <td width="28%" align="left" ><s:textfield name="company.companyNum" id="companyNum" dataType="Require" msg="请输入保险公司编号"/></td>
                <td width="51%" align="left" > 公司简称：
                  <s:textfield name="company.shortName" id="shortName" dataType="Require" msg="请输入公司简称"/></td>
              </tr>
              <tr>
                <td align="right" >公司名称(中文)：</td>
                <td colspan="2" align="left" ><s:textfield name="company.companynameC" cssStyle="width:300px" id="companynameC"  dataType="Require" msg="请输入中文公司名称"/></td>
              </tr>
              <tr>
                <td align="right" >公司名称(英文)：</td>
                <td colspan="2" align="left" ><s:textfield name="company.companynameE" cssStyle="width:300px" id="companynameE"  dataType="Require" msg="请输入英文公司名称"/></td>
              </tr>
              <tr>
                <td align="right" >业务类型：</td>
                <td align="left" >
                <s:select name="company.businesstype" list="#{'':'--全部--','综合':'综合','财产险':'财产险','人寿险':'人寿险','再保险':'再保险','其他':'其他'}" id="businesstype"  dataType="Require" msg="请选择业务类型">
                </s:select></td>
                <td align="left" >行政级别
                  <s:select name="company.adlevel" list="#{'':'--全部--','总公司':'总公司','分公司':'分公司','办事处':'办事处','其他':'其他'}" id="adlevel"  dataType="Require" msg="请选择行政级别">
                  </s:select></td>
              </tr>
              <tr>
                <td align="right" >地址：</td>
                <td colspan="2" align="left" ><s:textfield name="company.companyAddress"  cssStyle="width:300px" id="companyAddress"  dataType="Require" msg="请输入地址" /></td>
              </tr>
              <tr>
                <td align="right" >电话：</td>
                <td align="left" ><s:textfield name="company.ctelephone" id="ctelephone" dataType="Require" msg="请输入电话"/></td>
                <td align="left" >邮&nbsp;编 ：
                  <s:textfield name="company.cpostCode" id="cpostcode" dataType="Zip" msg="请输入邮编 "/></td>
              </tr>
              <tr>
                <td align="right" >传真：</td>
                <td align="left" ><s:textfield name="company.cfax" id="cfax" dataType="Require" msg="请输入传真"/></td>
                <td align="left" >联系人：
                  <s:textfield name="company.ccontactMan" id="ccontactMan" dataType="Require" msg="请输入联系人"/></td>
              </tr>
            </table>
                  <table width="100%" border="0" cellspacing="2" cellpadding="0">
                    <tr>
                      <td width="21%" align="right" >电子邮箱：</td>
                      <td width="79%" align="left" ><s:textfield name="company.cemail" cssStyle="width:300px" id="cemail"  dataType="Email" msg="请输入合法的电子邮箱"/></td>
                    </tr>
                    <tr>
                      <td align="right" >网站主页： </td>
                      <td align="left" ><s:textfield name="company.webAddress" id="webAddress" cssStyle="width:300px"  dataType="Url" msg="请输入网站主页" /></td>
                    </tr>
                </table></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table5">
          <tr>
            <td width="28%" colspan="2" bgcolor="#BBD2F7" class="title">附加资料</td>
          </tr>
          <tr>
            <td colspan="2"><table width="100%" border="0" cellspacing="2" cellpadding="0">
              <tr>
                <td width="21%" align="right" >开户银行：</td>
                <td width="79%" align="left" ><s:textfield name="company.cbankName" id="cbankName" cssStyle="width:300px"  dataType="Require" msg="请输入开户银行" /></td>
              </tr>
              <tr>
                <td align="right" >银行账户： </td>
                <td align="left" ><s:textfield name="company.bankAccount"  dataType="Require" msg="请输入银行账户" id="bankAccount" cssStyle="width:300px" /></td>
              </tr>
              <tr>
                <td align="right">公司简介：</td>
                <td><s:textarea name="company.cintroduct" id="cintroduct" cols="45" rows="5" cssClass="fjxx" dataType="Require" msg="请输入公司简介"></s:textarea></td>
              </tr>
              <tr>
                <td align="right">备注：</td>
                <td align="left"><s:textarea name="company.cmemo" id="cmemo" cols="45" rows="5" cssClass="fjxx"></s:textarea></td>
              </tr>
              <tr>
                <td colspan="2" align="center">
                <s:submit  value="保   存"  cssClass="btn"/>
                  &nbsp;&nbsp;&nbsp;&nbsp;
                  <s:reset  value="取   消"  cssClass="btn"/></td>
              </tr>
            </table></td>
          </tr>
        </table>
      </div>
    </div></td>
  </tr>
</table>
</s:form>

</script>
</body>
</html>
